<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div :style="{
            width: 100+200+'px',
            height: 1>2?'400px':'300px',
            background:color
        }">11</div>
    </div>
    <script src="./vue.js"></script>
    <script>
        const vm = new Vue({
            el: '#app',
            data:{
               color:'red'
            }
        })
        
    </script>
</body>
</html>